<template>
  <router-link v-if="userId" :to="`/user-detail?id=${userId}`">{{
    linkName
  }}</router-link>
  <span v-else>{{ linkName }}</span>
</template>

<script setup>
defineProps({
  userId: "",
  linkName: "",
});
</script>

<style scoped></style>
